package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingProject;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface NursingProjectMapper {

    // 插入护理项目
    int insertNursingProject(NursingProject nursingProject);

    // 更新护理项目
    int updateNursingProject(NursingProject nursingProject);

    // 根据ID查询护理项目
    NursingProject selectNursingProjectById(long id);

    // 根据名称查询护理项目
    NursingProject selectNursingProjectByName(String name);

    // 删除护理项目
    int deleteNursingProjectById(long id);

    Page<NursingProject> selectById(String name, Integer status);

    void updateStatus(Long id, Integer status);

    List<NursingProject> selectAllNursingProjects();
}